package com.boarsoft.flow.core.bean;

import java.util.Map;

public class JoinNode extends WrappedNode {
	/** 必需项 */
	protected String next;
	/** 必需项 */
	protected JoinHandler handler;

	public int getType() {
		return BaseNode.TYPE_JOIN;
	}

	public Object join(Object flowData, Map<String, Object> resultMap) {
		if (handler == null) {
			return flowData;
		}
		return handler.join(flowData, resultMap);
	}

	public String getNext() {
		return next;
	}

	public void setNext(String next) {
		this.next = next;
	}

	public JoinHandler getHandler() {
		return handler;
	}

	public void setHandler(JoinHandler handler) {
		this.handler = handler;
	}
}
